﻿package mortal.game.view.mainUI.smallMap.view.typeIconDataParser
{
    import Message.BroadCast.*;
    import Message.DB.Tables.*;
    import Message.Public.*;
    import mortal.game.resource.*;
    import mortal.game.resource.tableConfig.*;
    import mortal.game.scene3D.player.entity.*;
    import mortal.game.view.mainUI.smallMap.view.data.*;

    public class SmallMap_NormalParser extends Object implements ISMallMapTyperIconDataParser
    {
        public static var instance:SmallMap_NormalParser = new SmallMap_NormalParser;

        public function SmallMap_NormalParser()
        {
            return;
        }// end function

        public function chooseIcon(param1:IEntity, param2:Array) : void
        {
            var _loc_5:TBoss = null;
            var _loc_3:* = param1.entityInfo.entityInfo;
            var _loc_4:* = new SmallMapTypeIconData();
            _loc_4.x = param1.x2d;
            _loc_4.y = param1.y2d;
            _loc_4.name = "";
            _loc_4.tips = "";
            if (_loc_3.entityId.type == EEntityType._EEntityTypeBoss)
            {
                _loc_5 = BossConfig.instance.getInfoByCode(_loc_3.code);
                if (_loc_5 && _loc_5.category == 3)
                {
                    _loc_4.iconName = ImagesConst.MapPoint_MovePoint;
                }
                else
                {
                    _loc_4.iconName = ImagesConst.MapPoint_Path;
                }
                param2.push(_loc_4);
            }
            return;
        }// end function

    }
}
